<template>
  <div  >
<!--顶栏-->
    <div class="header">
      <h2 style="padding-top: 20px;color: white">学生测试系统</h2>
	  <span @click="out()">退出</span>
    </div>
    <router-view/>
  </div>
</template>

<script>
 export default {
   created() {

   },
   methods:{
	   out(){
		   localStorage.setItem("user",null)
		   this.$router.push("/teacherOrStudentLogin")
	   }
   }
 }
</script>
<style>
.header{
/*  顶部样式*/
  height: 80px;
  width: 100%;
  background-color: #666666;
  text-align: center;
}

</style>